package com.pospi.xstore.ui.my_ui;

import android.os.Bundle;
import android.widget.TextView;

import com.lany.sp.SPHelper;
import com.pospi.xstore.App;
import com.pospi.xstore.R;
import com.pospi.xstore.ui.base.BaseActivity;
import com.pospi.xstore.util.Constant;

import butterknife.Bind;
import butterknife.ButterKnife;

public class AccountInfoActivity extends BaseActivity {

    @Bind(R.id.tv_number)
    TextView tvNumber;
    @Bind(R.id.tv_name)
    TextView tvName;
    @Bind(R.id.tv_account)
    TextView tvAccount;
    @Bind(R.id.tv_shop)
    TextView tvShop;
    @Bind(R.id.tv_device)
    TextView tvDevice;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentLayout(R.layout.activity_account_info);
        setTitle(getResources().getString(R.string.accountInfo));
        ButterKnife.bind(this);
        tvNumber.setText(String.format("企业号: %s", SPHelper.getInstance().getString(Constant.COUNT_QYH)));
        tvName.setText(String.format("姓名: %s", SPHelper.getInstance().getString(Constant.COUNT_NAME)));
        tvAccount.setText(String.format("当前帐号: %s", SPHelper.getInstance().getString(Constant.COUNT_NAME)));
        tvShop.setText(String.format("工作店铺: %s", SPHelper.getInstance().getString(Constant.STORE_NAME)));
        tvDevice.setText(String.format("设备号： %s", "0001"));
    }
}
